<?php 
class Controller extends SmartyView{
	private $arr=array();
	/**
	 * 成功提示方法
	 */
	protected function success($msg,$url){
		$str = <<<str
<script type="text/javascript">
alert("{$msg}");
location.href="{$url}";
</script>
str;
		echo $str;die;
	}
	
	/**
	 * 错误提示方法
	 */
	protected function error($msg){
		$str = <<<str
<script type="text/javascript">
alert("{$msg}");
history.back();
</script>
str;
		echo $str;die;
	}

	
	
	
	
	
}


 ?>